The Bone object

This object gives access to Bone-specific data in Blender.

Method Summary

list of Blender Bones

getChildren()

Get this Bone's children Bones, if available.

list of three floats

getHead()

Get the "head" ending position.

list of three floats

getLoc()

Get the location of this Bone.

string

getName()

Get the name of this Bone.

Blender Bone

getParent()

Get this Bone's parent Bone, if available.

list of four floats.

getQuat()

Get this Bone's quaternion.

float

getRoll()

Get the roll value.

list of three floats

getSize()

Get the size attribute.

list of three floats

getTail()

Get the "tail" ending position.

true or false

hasParent()

True if this Bone has a parent Bone.

á

setHead(x, y, z)

Set the "head" ending position.

á

setLoc(x, y, z)

Set the new location for this Bone.

á

setName(name)

Rename this Bone.

á

setQuat(real, imag_i, imag_j, imag_k)

Set the new quaternion orientation for this Bone.

á

setRoll(roll)

Set the roll value.

á

setSize(x, y, z)

Set the new size for this Bone.

á

setTail(x, y, z)

Set the "tail" ending position.

Class Variable Summary

á

children - The children bones.

á

head - This Bone's "head" ending position when in rest state.

á

loc - This Bone's location.

á

name - The name of this Bone.

á

parent - The parent Bone.

á

quat - This Bone's quaternion.

á

roll - This Bone's roll value.

á

size - This Bone's size.

á

tail - This Bone's "tail" ending position when in rest state.

Method Details

getChildren()

Get this Bone's children Bones, if available.

Returns:

list of Blender Bones

getHead()

Get the "head" ending position.

Returns:

list of three floats

getLoc()

Get the location of this Bone.

Returns:

list of three floats

getName()

Get the name of this Bone.

Returns:

string

getParent()

Get this Bone's parent Bone, if available.

Returns:

Blender Bone

getQuat()

Get this Bone's quaternion.

Returns:

list of four floats.

getRoll()

Get the roll value.

Returns:

float

getSize()

Get the size attribute.

Returns:

list of three floats

getTail()

Get the "tail" ending position.

Returns:

list of three floats

hasParent()

True if this Bone has a parent Bone.

Returns:

true or false

setHead(x, y, z)

Set the "head" ending position.

Parameters:

x - The new x value.

áááááááááá (type=float)

y - The new y value.

áááááááááá (type=float)

z - The new z value.

áááááááááá (type=float)

setLoc(x, y, z)

Set the new location for this Bone.

Parameters:

x - The new x value.

áááááááááá (type=float)

y - The new y value.

áááááááááá (type=float)

z - The new z value.

áááááááááá (type=float)

setName(name)

Rename this Bone.

Parameters:

name - The new name.

áááááááááá (type=string)

setQuat(real, imag_i, imag_j, imag_k)

Set the new quaternion orientation for this Bone.

Parameters:

real - The new quat[0] value.

áááááááááá (type=float)

imag_i - The new quat[1] value.

áááááááááá (type=float)

imag_j - The new quat[2] value.

áááááááááá (type=float)

imag_k - The new quat[3] value.

áááááááááá (type=float)

setRoll(roll)

Set the roll value.

Parameters:

roll - The new value.

áááááááááá (type=float)

setSize(x, y, z)

Set the new size for this Bone.

Parameters:

x - The new x value.

áááááááááá (type=float)

y - The new y value.

áááááááááá (type=float)

z - The new z value.

áááááááááá (type=float)

setTail(x, y, z)

Set the "tail" ending position.

Parameters:

x - The new x value.

áááááááááá (type=float)

y - The new y value.

áááááááááá (type=float)

z - The new z value.

áááááááááá (type=float)

Class Variable Details

children

The children bones.

head

This Bone's "head" ending position when in rest state.

loc

This Bone's location.

name

The name of this Bone.

parent

The parent Bone.

quat

This Bone's quaternion.

roll

This Bone's roll value.

size

This Bone's size.

tail

This Bone's "tail" ending position when in rest state.